<?php

namespace System\library\logger\formaters;

use System\library\logger\IFormater;

/**
 * <b>Class</b> :        Xtml<br>
 * <b>Fonction</b> :     Permet de formater les logs au format xtml
 * <br>
 * @version              1.0
 * @author               Dread <dreadlokeur@gmail.com>
 * @license              Licence publique générale GNU http://www.gnu.org/licenses/gpl.html
 * @copyright            Copyright 2011 - MidichloriansPHP and contributors
 * @package              System
 * @subpackage           library\logger\formaters
 * 
 * @see System\library\logger\IFormater
 */
class Xml implements IFormater {

    private $_indente = true;

    public function __construct($indente = true) {
        if (!$indente)
            $this->setIndente($indente);
    }

    public function setIndente($bool) {
        if (!is_bool($bool))
            throw new \Exception('Indente param must be a boolean');
        $this->_indente = $bool;
    }

    public function getIndente() {
        return $this->_indente;
    }

    public function getHeader() {
        
    }

    public function getFooter() {
        
    }

    public function format() {
        
    }

}
